# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=endeavour
pkgver=43.0
pkgrel=0
pkgdesc="Personal task manager for GNOME"
url="https://wiki.gnome.org/Apps/Todo"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	evolution-data-server-dev
	gnome-online-accounts-dev
	gtk4.0-dev
	itstool
	libadwaita-dev
	libpeas-dev
	meson
	"
subpackages="$pkgname-lang $pkgname-doc $pkgname-dev"
source="https://gitlab.gnome.org/World/Endeavour/-/archive/$pkgver/Endeavour-$pkgver.tar.gz"
builddir="$srcdir/Endeavour-$pkgver"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
fca96729595f59b16d54e18cebed81e3b68e67f466f479bdcd0b68405b7051bade2a730f1b62502d0c7342a08fe3a8183b94a7f6be21830326ba0a7fab2480ed  Endeavour-43.0.tar.gz
"
